<template>
  <div class="consult-detail">
    <nav-bar class="nav-bar">
      <div slot="lefts">
        <div class="icons" @click="backClick">
          <img src="@/assets/back.png" alt="" />
        </div>
      </div>
      <div slot="centers">
        <div class="title-center">资讯详情</div>
      </div>
      <div slot="rights">
        <div class="icons">
          <img src="@/assets/more.png" alt="" />
        </div>
      </div>
    </nav-bar>
    <div class="mains">
      <div class="title">公司新闻介绍（每日新闻报道）全新体验欢迎你购买</div>
      <div class="bottom">
        <div class="bottom-left">
          <div class="icons">
            <img src="@/assets/consulting.png" alt="" />
          </div>
          <div class="text">公司咨询</div>
        </div>
        <div class="bottom-right">
          <div class="person">2020年5月21日</div>
        </div>
      </div>
      <p class="x-desc">
        这里是资讯的简介这里是资讯的简介这里是资讯的简介这里是资讯的简介这里是资讯的简介。
      </p>
      <p class="x-desc">
        化妆品定义
        本条例(《化妆品卫生监督条例》,1989年)所称的化妆品,是指以涂擦、喷洒或者其他类似的方法,散布于人体表面任何部位(皮肤、毛发、指甲、口唇等),以达到清洁...
      </p>
      <div class="imgs"></div>
    </div>
  </div>
</template>

<script>
import NavBar from '@/components/NavBar'
export default {
  name: 'consultDetail',
  components: {
    NavBar,
  },
  methods: {
    backClick() {
      this.$router.back()
    },
  },
}
</script>

<style lang="scss" scoped>
.nav-bar {
  font-size: 16px;
  background-color: #fff;
  .icons {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      width: 100%;
    }
  }
  .title-center {
    display: flex;
    line-height: 44px;
    justify-content: space-between;
  }
}
.consult-detail {
  padding-top: 44px;
  .mains {
    padding: 0 24px;
    overflow: hidden;
    font-size: 14px;
    .title {
      width: 327px;
      height: 52px;
      font-size: 18px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #1f0d44;
      line-height: 26px;
      margin: 16px 0 12px;
    }
    .x-desc {
      font-weight: 400;
      color: #665e75;
      line-height: 24px;
      margin-bottom: 14px;
    }
    .imgs {
      width: 327px;
      height: 160px;

      background: #622ccc;
      border-radius: 8px;
      img {
        width: 100%;
        height: 100px;
      }
    }
  }
}
.bottom {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  .bottom-left {
    display: flex;

    .icons {
      width: 16px;
      height: 16px;
      margin-right: 4px;
      img {
        width: 100%;
        height: 100%;
        vertical-align: 10px;
      }
    }
    .text {
      font-size: 11px;
      color: #ff7e33;
    }
  }
  .bottom-right {
    font-size: 12px;
    color: #afabb7;
    display: flex;
  }
}
</style>